//测试用，具体模块代码见gameJudge.cpp
#include <iostream>
#include "gameJudge.h"
#define ROW 4   //游戏方格行数
#define COL 4   //游戏方格列数
int game[ROW][COL] = {{0, 2, 8, 256},{64, 512, 2048, 0},{0, 2, 4, 256},{32, 0, 4, 2}};    //成功案例
//int game[ROW][COL] = {{4, 2, 8, 256},{64, 512, 32, 2},{8, 2, 4, 256},{32, 16, 8, 2}};    //失败案例
//int game[ROW][COL] = {{0, 2, 8, 256},{64, 512, 2, 0},{0, 2, 4, 256},{32, 0, 4, 2}};    //继续案例
int main()
{
    using namespace std;
    int gameCondition;
    gameCondition = gameJudge(game);
    switch (gameCondition)
    {
        case 0 : cout << "GAME LOSE" << endl;
                 break;
        case 1 : cout << "GAME WIN" << endl;
                 break;
        case 2 : cout << "GAME CONTINUE" << endl;
                 break;
    }
    return 0;
}
